
import time

# 等待n秒
# time.sleep(n)

# 从1970-1-1 0：0到现在的秒数
# ticks = time.time()
# print(ticks)

# t1 = time.time()
# sum = 0
# for i in range(1000000000):
#     sum += 1
# t2 = time.time()
# print(f'{t2-t1}秒')

# print('本地时间为：'，t)

for i in range(60):
    t = time.localtime(time.time())
    print(f'{t.tm_hour}:{t.tm_min}:{t.tm_sec}')
    time.sleep(1)